from selenium.webdriver.common.by import By

from demo.weworkSelenium.page.base_page import BasePage


class Contact(BasePage):
    def add_member(self):
        name_locator = (By.NAME, 'username')
        acctid_locator = (By.NAME, 'acctid')
        gender_locator = (By.CSS_SELECTOR, '.ww_radio[value="2"]')

        country_locator = (By.CSS_SELECTOR, '.ww_telInput_zipCode_input')
        country1_locator = (By.CSS_SELECTOR, 'li[data-value="853"]')
        mobile_locator = (By.NAME, 'mobile')

        self.find(name_locator).send_keys('lk')
        self.find(acctid_locator).send_keys('lk')
        self.find(gender_locator).click()
        self.find(country_locator).click()
        self.find(country1_locator).click()
        self.find(mobile_locator).send_keys('13797763252')





